package com.loan.market.util

import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView

fun RecyclerView.scroll(index: Int) {
    scrollToPosition(index)
    (layoutManager as LinearLayoutManager).scrollToPositionWithOffset(index, 0)
}